home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 1 / MacMania 1.toast / Educational / Sciences / Sol's Neighbors / background_2171.txt < prev    next >
Text File  |  1988-12-15  |  10KB  |  435 lines

  1. -- background: 2171 from stack: in
  2. -- bmap block id: 24729
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openStack
  8.   hide message box
  9.   show menuBar
  10.   pass openStack
  11. end openStack
  12.  
  13.  
  14.  
  15. -- part 9 (button)
  16. -- low flags: 00
  17. -- high flags: 2000
  18. -- rect: left=228 top=298 right=321 bottom=254
  19. -- title width / last selected line: 0
  20. -- icon id / first selected line: 1014 / 1014
  21. -- text alignment: 1
  22. -- font id: 0
  23. -- text size: 12
  24. -- style flags: 0
  25. -- line height: 16
  26. -- part name: Prev
  27. ----- HyperTalk script -----
  28. on mouseUp
  29.   go to prev card
  30. end mouseUp
  31.  
  32.  
  33.  
  34. -- part 8 (button)
  35. -- low flags: 00
  36. -- high flags: 2000
  37. -- rect: left=256 top=298 right=321 bottom=281
  38. -- title width / last selected line: 0
  39. -- icon id / first selected line: 1013 / 1013
  40. -- text alignment: 1
  41. -- font id: 0
  42. -- text size: 12
  43. -- style flags: 0
  44. -- line height: 16
  45. -- part name: Next
  46. ----- HyperTalk script -----
  47. on mouseUp
  48.   go to next card
  49. end mouseUp
  50.  
  51.  
  52.  
  53. -- part 16 (button)
  54. -- low flags: 00
  55. -- high flags: 2000
  56. -- rect: left=15 top=299 right=321 bottom=40
  57. -- title width / last selected line: 0
  58. -- icon id / first selected line: 21700 / 21700
  59. -- text alignment: 1
  60. -- font id: 0
  61. -- text size: 12
  62. -- style flags: 0
  63. -- line height: 16
  64. -- part name: GoHome
  65. ----- HyperTalk script -----
  66. on mouseUp
  67.   go home
  68. end mouseUp
  69.  
  70.  
  71.  
  72. -- part 17 (field)
  73. -- low flags: 00
  74. -- high flags: 0000
  75. -- rect: left=8 top=24 right=72 bottom=214
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 0
  79. -- font id: 2
  80. -- text size: 18
  81. -- style flags: 256
  82. -- line height: 24
  83. -- part name: Name
  84.  
  85.  
  86. -- part 18 (field)
  87. -- low flags: 00
  88. -- high flags: 0000
  89. -- rect: left=75 top=75 right=92 bottom=130
  90. -- title width / last selected line: 0
  91. -- icon id / first selected line: 0 / 0
  92. -- text alignment: 0
  93. -- font id: 3
  94. -- text size: 12
  95. -- style flags: 0
  96. -- line height: 16
  97. -- part name: Alpha
  98.  
  99.  
  100. -- part 19 (field)
  101. -- low flags: 00
  102. -- high flags: 0000
  103. -- rect: left=75 top=95 right=112 bottom=130
  104. -- title width / last selected line: 0
  105. -- icon id / first selected line: 0 / 0
  106. -- text alignment: 0
  107. -- font id: 3
  108. -- text size: 12
  109. -- style flags: 0
  110. -- line height: 16
  111. -- part name: Delta
  112.  
  113.  
  114. -- part 20 (field)
  115. -- low flags: 00
  116. -- high flags: 0000
  117. -- rect: left=75 top=115 right=132 bottom=130
  118. -- title width / last selected line: 0
  119. -- icon id / first selected line: 0 / 0
  120. -- text alignment: 0
  121. -- font id: 3
  122. -- text size: 12
  123. -- style flags: 0
  124. -- line height: 16
  125. -- part name: Parallax
  126.  
  127.  
  128. -- part 21 (field)
  129. -- low flags: 00
  130. -- high flags: 0000
  131. -- rect: left=76 top=135 right=152 bottom=141
  132. -- title width / last selected line: 0
  133. -- icon id / first selected line: 0 / 0
  134. -- text alignment: 0
  135. -- font id: 3
  136. -- text size: 12
  137. -- style flags: 0
  138. -- line height: 16
  139. -- part name: DistLy
  140.  
  141.  
  142. -- part 22 (field)
  143. -- low flags: 00
  144. -- high flags: 0000
  145. -- rect: left=75 top=155 right=172 bottom=140
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 0
  149. -- font id: 3
  150. -- text size: 12
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: DistPs
  154.  
  155.  
  156. -- part 23 (field)
  157. -- low flags: 00
  158. -- high flags: 0000
  159. -- rect: left=101 top=177 right=194 bottom=155
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 0 / 0
  162. -- text alignment: 0
  163. -- font id: 3
  164. -- text size: 12
  165. -- style flags: 0
  166. -- line height: 16
  167. -- part name: SpectClass
  168.  
  169.  
  170. -- part 24 (field)
  171. -- low flags: 00
  172. -- high flags: 0000
  173. -- rect: left=101 top=198 right=215 bottom=143
  174. -- title width / last selected line: 0
  175. -- icon id / first selected line: 0 / 0
  176. -- text alignment: 0
  177. -- font id: 3
  178. -- text size: 12
  179. -- style flags: 0
  180. -- line height: 16
  181. -- part name: PropMotion
  182.  
  183.  
  184. -- part 25 (field)
  185. -- low flags: 00
  186. -- high flags: 0000
  187. -- rect: left=101 top=220 right=237 bottom=143
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 0 / 0
  190. -- text alignment: 0
  191. -- font id: 3
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: VisualMag
  196.  
  197.  
  198. -- part 26 (field)
  199. -- low flags: 00
  200. -- high flags: 0000
  201. -- rect: left=301 top=37 right=54 bottom=365
  202. -- title width / last selected line: 0
  203. -- icon id / first selected line: 0 / 0
  204. -- text alignment: 0
  205. -- font id: 3
  206. -- text size: 12
  207. -- style flags: 0
  208. -- line height: 16
  209. -- part name: Luminosity
  210.  
  211.  
  212. -- part 27 (field)
  213. -- low flags: 00
  214. -- high flags: 0000
  215. -- rect: left=301 top=57 right=74 bottom=365
  216. -- title width / last selected line: 0
  217. -- icon id / first selected line: 0 / 0
  218. -- text alignment: 0
  219. -- font id: 3
  220. -- text size: 12
  221. -- style flags: 0
  222. -- line height: 16
  223. -- part name: SurfTemp
  224.  
  225.  
  226. -- part 28 (field)
  227. -- low flags: 00
  228. -- high flags: 0000
  229. -- rect: left=301 top=77 right=94 bottom=365
  230. -- title width / last selected line: 0
  231. -- icon id / first selected line: 0 / 0
  232. -- text alignment: 0
  233. -- font id: 3
  234. -- text size: 12
  235. -- style flags: 0
  236. -- line height: 16
  237. -- part name: Radius
  238.  
  239.  
  240. -- part 29 (field)
  241. -- low flags: 00
  242. -- high flags: 0000
  243. -- rect: left=301 top=98 right=115 bottom=365
  244. -- title width / last selected line: 0
  245. -- icon id / first selected line: 0 / 0
  246. -- text alignment: 0
  247. -- font id: 3
  248. -- text size: 12
  249. -- style flags: 0
  250. -- line height: 16
  251. -- part name: Mass
  252.  
  253.  
  254. -- part 30 (field)
  255. -- low flags: 00
  256. -- high flags: 0000
  257. -- rect: left=294 top=118 right=135 bottom=365
  258. -- title width / last selected line: 0
  259. -- icon id / first selected line: 0 / 0
  260. -- text alignment: 0
  261. -- font id: 3
  262. -- text size: 12
  263. -- style flags: 0
  264. -- line height: 16
  265. -- part name: Density
  266.  
  267.  
  268. -- part 31 (button)
  269. -- low flags: 00
  270. -- high flags: 2000
  271. -- rect: left=462 top=299 right=321 bottom=489
  272. -- title width / last selected line: 0
  273. -- icon id / first selected line: 29019 / 29019
  274. -- text alignment: 1
  275. -- font id: 0
  276. -- text size: 12
  277. -- style flags: 0
  278. -- line height: 16
  279. -- part name: GoFirst
  280. ----- HyperTalk script -----
  281. on mouseUp
  282.   go first
  283. end mouseUp
  284.  
  285.  
  286.  
  287. -- part 32 (field)
  288. -- low flags: 00
  289. -- high flags: 0000
  290. -- rect: left=325 top=138 right=155 bottom=376
  291. -- title width / last selected line: 0
  292. -- icon id / first selected line: 0 / 0
  293. -- text alignment: 0
  294. -- font id: 3
  295. -- text size: 12
  296. -- style flags: 0
  297. -- line height: 16
  298. -- part name: ERadius
  299.  
  300.  
  301. -- part 33 (field)
  302. -- low flags: 00
  303. -- high flags: 0000
  304. -- rect: left=325 top=158 right=175 bottom=376
  305. -- title width / last selected line: 0
  306. -- icon id / first selected line: 0 / 0
  307. -- text alignment: 0
  308. -- font id: 3
  309. -- text size: 12
  310. -- style flags: 0
  311. -- line height: 16
  312. -- part name: EPeriod
  313.  
  314.  
  315. -- part 34 (field)
  316. -- low flags: 00
  317. -- high flags: 0007
  318. -- rect: left=16 top=238 right=300 bottom=199
  319. -- title width / last selected line: 0
  320. -- icon id / first selected line: 0 / 0
  321. -- text alignment: 0
  322. -- font id: 3
  323. -- text size: 9
  324. -- style flags: 0
  325. -- line height: 12
  326. -- part name: Comments
  327.  
  328.  
  329. -- part 36 (button)
  330. -- low flags: 00
  331. -- high flags: A003
  332. -- rect: left=314 top=301 right=320 bottom=434
  333. -- title width / last selected line: 0
  334. -- icon id / first selected line: 0 / 0
  335. -- text alignment: 1
  336. -- font id: 0
  337. -- text size: 12
  338. -- style flags: 0
  339. -- line height: 16
  340. -- part name: Plot Location
  341. ----- HyperTalk script -----
  342. on mouseUp
  343.   global b,d,ho,vo,seeCard
  344.   put 1 into seeCard
  345.   push card
  346.   put 256 into ho  -- horizontal origin
  347.   put 150 into vo  -- vertical origin
  348.   put 45 into a  -- radius parsecs to pixels
  349.   put 1/2 into b  -- y/x aspect ratio
  350.   put 0.0174533 into c  -- degrees to radians
  351.   put 400 into d  -- pixel distance from eye to origin
  352.   put 4.90 * a into e  -- frame size
  353.   put field DistPs * a into r
  354.   put field Name into n
  355.   put c * ((word 1 of field Alpha * 15) + (word 2 of field Alpha / 60)) into ph  --  azimuthal angle in radians
  356.   put c * (value("0"&word 1 of field Delta) + (word 2 of field Delta / 60)) into th  --  equitorial angle in radians
  357.   go to card PlotCard
  358.   put n into card field Name
  359.   put (r*sin(ph)*cos(th)) into x
  360.   put (-r*cos(ph)*cos(th)) into y
  361.   put (r*sin(th)) into z
  362.   perspective 0,0,0,x,y,0,0,0
  363.   perspective x,y,0,x,y,z,0,0
  364.   perspective 0,0,0,x,y,z,1,1
  365.   choose browse tool
  366. end mouseUp
  367.  
  368. on perspective x1,y1,z1,x2,y2,z2,li,ci
  369.   global b,d,ho,vo
  370.   choose line tool
  371.   set the pattern to 40  --  checkerboard
  372.   set the centered to false  -- don't draw centered
  373.   put (d/(d+y1)) into p1
  374.   put round(ho+p1*x1) into h1
  375.   put round(vo-p1*(b*y1+z1)) into v1
  376.   put (d/(d+y2)) into p2
  377.   put round(ho+p2*x2) into h2
  378.   put round(vo-p2*(b*y2+z2)) into v2
  379.   if li = 0 then
  380.     drag from h1,v1 to h2,v2  --  solid line
  381.   else
  382.     drag from h1,v1 to h2,v2 with optionKey  --  dotted line
  383.   end if
  384.   if ci = 1 then  --  draw circle at end of line
  385.     choose oval tool
  386.     set the pattern to 12  --  black
  387.     set the centered to true  -- draw centered
  388.     drag from h2,v2 to h2 + 3,v2 + 3
  389.   end if
  390. end perspective
  391.  
  392.  
  393.  
  394.  
  395. -- part 38 (button)
  396. -- low flags: 00
  397. -- high flags: A003
  398. -- rect: left=68 top=301 right=320 bottom=210
  399. -- title width / last selected line: 0
  400. -- icon id / first selected line: 0 / 0
  401. -- text alignment: 1
  402. -- font id: 0
  403. -- text size: 12
  404. -- style flags: 0
  405. -- line height: 16
  406. -- part name: Distance from 1 ...
  407. ----- HyperTalk script -----
  408. on mouseUp
  409.   global x1,y1,z1
  410.   put 0.0174533 into c  -- degrees to radians
  411.   get the short name of me
  412.   if it = "Distance from 1 ..." then
  413.     put field DistLY into r
  414.     put c * ((word 1 of field Alpha * 15) + (word 2 of field Alpha / 60)) into ph  --  azimuthal angle in radians
  415.     put c * (value("0"&word 1 of field Delta) + (word 2 of field Delta / 60)) into th  --  equitorial angle in radians
  416.     put (r*cos(ph)*cos(th)) into x1
  417.     put (r*sin(ph)*cos(th)) into y1
  418.     put (r*sin(th)) into z1
  419.     set the name of me to "... to 2 ="
  420.   end if
  421.   if it = "... to 2 =" then
  422.     put field DistLY into r
  423.     put c * ((word 1 of field Alpha * 15) + (word 2 of field Alpha / 60)) into ph  --  azimuthal angle in radians
  424.     put c * (value("0"&word 1 of field Delta) + (word 2 of field Delta / 60)) into th  --  equitorial angle in radians
  425.     put (r*cos(ph)*cos(th)) into x2
  426.     put (r*sin(ph)*cos(th)) into y2
  427.     put (r*sin(th)) into z2
  428.     set the numberFormat to "0.0##"
  429.     put sqrt((x1-x2)^2+(y1-y2)^2+(z1-z2)^2) into d
  430.     put "Distance =" && d && "light-years =" && (.3065948*d) && "parsecs =" && (63240*d) && "A.U." into message box
  431.     set the name of me to "Distance from 1 ..."
  432.   end if
  433. end mouseUp
  434.  
  435.